list to int array in java 8

53

list to int array in java 8 -

int[] array = list.stream().mapToInt(i->i).toArray();

Comments

Submit
0 Comments